/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.eweboffice;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.eweboffice.Document;

/**
 * @author CSJ (email:Cao.shengjie777@gmail.com)
 * @since 2013-04-09
 */
public interface DocumentService {

    /****************************************
     * Insert a instace of Document
     ****************************************/
    void insert(Document document) throws Exception;

    /****************************************
     * Insert instaces of Document
     ****************************************/
    void batchInsert(Document document) throws Exception;

    /****************************************
     * Delete a instace of Document
     ****************************************/
    void delete(Document document) throws Exception;

    /****************************************
     * Delete instaces of Document
     ****************************************/
    void batchDelete(Document document) throws Exception;

    /****************************************
     * Update a instace of Document
     ****************************************/
    void update(Document document) throws Exception;

    /****************************************
     * Query instaces of Document
     ****************************************/
    List<BaseModel> queryAsList(Document document) throws Exception;

    /****************************************
     * Query a instaces of Document
     ****************************************/
    BaseModel queryAsObject(Document document) throws Exception;
}
